#include "MainWindow.h"

class AppClass : public JUCEApplication
{
public:
	MainWindow* window;

	AppClass() : window(0)
	{

	}

	void initialise(const String& commandline)
	{
		window = new MainWindow();
		window->maximiseButtonPressed();
		window->setVisible(true);
	}

	void shutdown()
	{
		deleteAndZero(window);
	}

	const String getApplicationName()
	{
		return T("Nutrition Guide and Meal Planner");
	}

	const String getApplicationVersion()
	{
		return T("0.001");
	}

	bool moreThanOneInstanceAllowed()
	{
		return false;
	}

	void anotherInstanceStarted(const String& command)
	{

	}
};

START_JUCE_APPLICATION(AppClass)
